﻿using System;

namespace StripeOne.ShortenUrl.Model
{
    public abstract class ApiException : Exception
    {
        public StatusCode StatusCode { get; private set; }
        
        protected ApiException(StatusCode statusCode)
        {
            this.StatusCode = statusCode;
        }

        protected ApiException(StatusCode statusCode, string message)
            : base(message)
        {
            this.StatusCode = statusCode;
        }
    }
}
